<?php

namespace model;

class visits
{
    const TABLE = 'visits';

    static public function selectData()
    {
        $pdo = \libs\pdo::Init();
        $prefix = $pdo->GetConfig();
        $fix = $prefix['prefix'] . self::TABLE;
        return array_reverse($pdo->QueryAll("SELECT * FROM {$fix} order by id desc limit 30"));
    }
}
